package practice02;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice02
 * @ClassName: Pen
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/9 19:18
 * @Copyright 大牛版板所有
 */
public class Pen {
    private String color;

    public Pen(String color) {
        this.color = color;
    }

    public Pen() {
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void draw(Shape shape){
        System.out.print("用"+this.getColor()+"笔绘制一个");
        shape.draw();

    }
}
